<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <script>
            let name = "tianming";
            let like = function(){
                console.log("喜欢吃烧鸡");
            };

            const t = {
                name,
                like,
                love(){
                    console.log("喜欢月儿!");
                }
            };

            console.log(t.love());
        </script>
    </body>
</html>